Available Plugin Keys

Plugins created in DEVONagent Pro's Plugins & Scanners window, are saved in ~/Library/Application Support/DEVONagent/Plugins. The format of the plugin depends on whether you choose to edit the plugin in Plist (.xml) or JSON (.json) format. Optionally, you can work in an external application. XML-based plugins can be created or edited in applications like BBEdit or even Apple's Xcode. JSON-based plugins are plain text and can be created and edited in any plain text editor, for example TextEdit. Externally created plugins should be saved with the proper file extension in the same location mentioned above.

When you create a plugin in the application, certain keys will be automatically added for you. Double-click the plugin in the Plugins & Scanners window to view and edit the keys. This is a good way to learn the internal structure and workings of a DEVONagent Pro plugin. It's easy to make changes and test them quickly using this window. However, you can use in an external editor, if you choose.

Listed below are the available keys, some required and some optional. Also, if the source to be processed is not HTML but XML or JSON output, there are specific keys that need to be used. Those are listed separately.

Boolean values are true or false and string values are case-insensitive.

Keys for HTML

Required Keys:

Optional Keys:

Keys for XML/JSON

Required Keys:

Optional Keys:

Localization

Three identifier keys of a plugin can be localized: Name, Info and Description. Specify the desired key as a dict (dictionary) containing key and string pairs, one per additional language. The key contains the appropriate language code, e.g., en, de, or fr, and the string is the localized text for the specified language.

Additionally, the following keys can be localized by adding a suffix for use with language-specific search engines: EngineUrl, EngineNextUrl, KeywordsUrl, and NextLinkName. Language identifiers are: DE, DA, NL, ES, HU, FR, IT, CS, PT, PL, SV, FI, EN, NO, RU, EL, AR, and HE.

Notes

Operator Bitmap: The following table gives you the necessary values for calculating the operator bitmap for the "Operators" key (see above):

LinksStart, et al.: LinksStart, LinksEnd, LinksMatching, and LinksNotMatching are three different ways to specify interesting links of a page. Specify none, some, or all of them depending on the search engine you are accessing. The more you specify, the higher the chances are that the plugin will still work after the structure of the HTML code or the links changed. First DEVONagent Pro retrieves links using LinksStart/LinksEnd, then it filters them using LinksNotMatching, and finally it matches them against LinksMatching.

Link Listings vs Matched Pages: LinksStart/LinksEnd, LinksMatching, and LinksNotMatching are used on pages listing links, e.g., a page of search engine results. Links are always followed on these pages. TextStart/TextEnd, TitleStart/TitleEnd, and DateStart/DateEnd are used on individual web pages, i.e., a matched Wikipedia page. The FollowLinks key/option can be used on these pages.